#ifndef LINUX_TIMER_H
#define LINUX_TIMER_H
#include <linux/timer.h>
typedef struct{
   struct timer_list handle;
   unsigned long timer; //周期
   void (*_callback)(unsigned long);//回调函数
   int autoRtimerEn; //自动重启
    unsigned long data;
}Ltimer;
Ltimer* InitTimer(	void (*function)(unsigned long),void* data, uint32_t timeout);
int freeTimer(Ltimer* timer);
void startTimer(Ltimer* timer);
#endif // !LINUX_TIMER_H
